package com.zangchat.service;

import com.alibaba.fastjson.JSONObject;
import com.common.core.domain.AjaxResult;
import com.zangchat.domain.ChatUsers;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * 用户 服务层
 *
 * @author wudi
 * @date 2020-07-06
 */
public interface IChatUsersService extends IService<ChatUsers>
{
    public AjaxResult getUrlForoauth(HttpServletRequest request);
    public AjaxResult vxOauthLogin(JSONObject jsonObject, HttpServletRequest request);
    public AjaxResult registerAfterVxOauthLogin(String vxOpenid, String userPhone,String password, String confirmPassword,String smsCode, HttpServletRequest request);

    AjaxResult register(String userPhone, String password, String confirmPassword, String smsCode, String invite);

    ChatUsers checkedUserPhone(String userPhone);

    AjaxResult login(String userName, String password,String derviceId,double longitude,double latitude);
    public AjaxResult checkedUser(Long userId);

    AjaxResult forgetPassword(String userPhone,String smsCode, String newPassword, String confirmPassword,String type);

    AjaxResult updatePassword(String userPhone, String oldPassword, String newPassword, String confirmPassword);

    AjaxResult getUserDetail(Long userId);

    public ChatUsers getUsersDataById(Long userId);

    int supplementOne(Long userId, Integer sex, String userName, String headImg);

    AjaxResult supplementTwo(Long userId, String flagList, String cover);
}